package com.yuanchu.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-03-04 21:22
 */
@Data
public class StoreSalesDto implements Serializable {

    private OverviewTrend overview;
    private TradeTrendVO tradeTrend;
    private List<GoodsRanking> goodsRanking;
    private List<UserExpendRanking> userExpendRanking;

    @Data
    public static class UserExpendRanking implements Serializable {
        @JsonProperty("user_id")
        private int userId;
        @JsonProperty("nick_name")
        private String nickName;
        @JsonProperty("expend_money")
        private String expendMoney;
    }

    @Data
    public static class GoodsRanking implements Serializable {
        @JsonProperty("goods_id")
        private int goodsId;
        @JsonProperty("goods_name")
        private String goodsName;
        @JsonProperty("sales_volume")
        private String salesVolume;
        @JsonProperty("total_sales_num")
        private String totalSalesNum;
    }

    @Data
    public static class OverviewTrend implements Serializable {
        private String userTotal;
        private String consumeUsers;
        private String orderTotal;
        private String orderTotalPrice;
        private String goodsTotal;
        private String rechargeTotalMoney;
    }
}
